package com.service.Impl;

import com.dao.ManagerDao;
import com.mypg.Manager;
import com.service.ManagerService;

public class ManagerServiceImpl implements ManagerService {

    private ManagerDao managerDao;

    public ManagerServiceImpl(){}
    public ManagerServiceImpl(ManagerDao managerDao) {
        this.managerDao = managerDao;
    }

    @Override
    public Manager selectManagerByManager_name(String manager_name) {
        return managerDao.selectManagerByManager_name(manager_name);
    }

    @Override
    public void updateManagerByManager_name(String manager_name, String manager_password) {
        managerDao.updateManagerByManager_name(manager_name,manager_password);
    }


    public ManagerDao getManagerDao() {
        return managerDao;
    }

    public void setManagerDao(ManagerDao managerDao) {
        this.managerDao = managerDao;
    }
}
